#include "opencvConvolution.h"

int cvConvolution(const Mat& src, const Mat& kernel, Mat& dst){

  if( !src.data ){
      return -1;
    }

  Point anchor= Point( -1, -1 );
  double delta = 0;
  int ddepth = -1;

  //applico il filtro
  filter2D(src, dst, ddepth , kernel, anchor, delta, BORDER_CONSTANT );
  return 0;
}
